import request from '@/utils/request'
//根据id,查询商户姓名
// export function getDirector(id) {
//   return request({
//     url: '/business/withdrawal/getName/' + id,
//     method: 'get'
//   })
// }

// 查询提现列表
export function listWithdrawal(query) {
  return request({
    url: '/business/withdrawal/list',
    method: 'get',
    params: query
  })
}

// 查询提现详细
export function getWithdrawal(id) {
  return request({
    url: '/business/withdrawal/' + id,
    method: 'get'
  })
}

// 新增提现
export function addWithdrawal(data) {
  return request({
    url: '/business/withdrawal',
    method: 'post',
    data: data
  })
}

// 修改提现
export function updateWithdrawal(data) {
  return request({
    url: '/business/withdrawal',
    method: 'put',
    data: data
  })
}

// 删除提现
export function delWithdrawal(id) {
  return request({
    url: '/business/withdrawal/' + id,
    method: 'delete'
  })
}
